<?php
// 订单跟踪
class OrderStateModel extends Model {
	protected $tableName = 'dd_gz';
	
	
	//根据订单状态返回订单状态
	public function getDD_GJ($DD_DDZT){
		$dd_gj = "订单已生成，处于未缴费状态";
		if($DD_DDZT == "DDZT2"){
			$dd_gj = "订单已处理，处于已缴费状态";
		}else if($DD_DDZT == "DDZT3"){
			$dd_gj = "订单已处理，处于已结算状态";
		}else if($DD_DDZT == "DDZT4"){
			$dd_gj = "订单已处理，处于已删除状态";
		}else if($DD_DDZT == "DDZT4"){
			$dd_gj = "订单已生成，处于预报名状态";
		}else if($DD_DDZT == "DDZT10"){ //修改订单
			$dd_gj = "订单已修改，处于未缴费状态";
		}else if($DD_DDZT == "DDZT11"){ //修改订单
			$dd_gj = "订单进行了冲账，处于未缴费状态";
		}else if($DD_DDZT == "DDZT12"){ //订单被销毁
			$dd_gj = "改订单已从系统成功销毁";
		}
		return $dd_gj;
	}


}